﻿using System;
using NHibernate.Mapping.ByCode;
using SellAndBuy.Domain.Entities;

namespace SellAndBuy.Infrastructure.Data.Mappings
{
    public class SimpleFeatureMap
    {
        public static Action<IComponentElementMapper<SimpleFeature>> Mapping()
        {
            return c =>
            {
                c.Property(p => p.Name, map => { map.Length(150); map.NotNullable(true); });
                c.Property(p => p.Value, map => { map.NotNullable(true); map.NotNullable(true); });
            };
        }
    }
}